package com.hobee.basic;

import org.springframework.boot.Banner;
import org.springframework.core.env.Environment;

import java.io.PrintStream;

/**
 * @author junjie.li
 * @date 2020/7/29 17:51
 */
public class BasicApplicationBanner implements Banner {
    @Override
    public void printBanner(Environment environment, Class<?> sourceClass, PrintStream out) {
        out.println("      ___           ___           ___           ___           ___     \n" +
                "     /  /\\         /  /\\         /  /\\         /  /\\         /  /\\    \n" +
                "    /  /:/        /  /::\\       /  /::\\       /  /::\\       /  /::\\   \n" +
                "   /  /:/        /  /:/\\:\\     /  /:/\\:\\     /  /:/\\:\\     /  /:/\\:\\  \n" +
                "  /  /::\\ ___   /  /::\\ \\:\\   /  /::\\ \\:\\   /  /:/  \\:\\   /  /:/  \\:\\ \n" +
                " /__/:/\\:\\  /\\ /__/:/\\:\\ \\:\\ /__/:/\\:\\_\\:| /__/:/ \\__\\:\\ /__/:/ \\__\\:\\\n" +
                " \\__\\/  \\:\\/:/ \\  \\:\\ \\:\\_\\/ \\  \\:\\ \\:\\/:/ \\  \\:\\ /  /:/ \\  \\:\\ /  /:/\n" +
                "      \\__\\::/   \\  \\:\\ \\:\\    \\  \\:\\_\\::/   \\  \\:\\  /:/   \\  \\:\\  /:/ \n" +
                "      /  /:/     \\  \\:\\_\\/     \\  \\:\\/:/     \\  \\:\\/:/     \\  \\:\\/:/  \n" +
                "     /__/:/       \\  \\:\\        \\__\\::/       \\  \\::/       \\  \\::/   \n" +
                "     \\__\\/         \\__\\/            ~~         \\__\\/         \\__\\/ ");
    }
}
